<?php
class Core_Frontend_Module_Menu_Render extends Core_Module_Render{

    public function __construct(){
        parent::__construct();
        $this->name = "menu";
    }
    
    public  function render(array $parameter = array()){
        $collection = App::getModel('website/collection_menu')
                        ->eq('a.enabled','1')->eq('parent_id','0')->load();
        $tmpl = $this->getTemplate()->assignMulti(array('result'=>$collection,'parameters'=>$parameter['parameters']));
        return $tmpl->render($this->getTemplatePath('menu'));
    }
}

